import http from '@/http'
import { ListTbParam, TbModel } from './TbModel'

export const addUserApi = (param:TbModel) => {
    return http.post("/api/tb",param)
}

export const getListApi = (param:ListTbParam) => {
    return http.get("/api/tb/list",param)
}

export const editUserApi = (param:TbModel) => {
    return http.put("/api/tb",param)
}

export const deleteUserApi = (id:string) => {
    return http.delete(`/api/tb/${id}`)
}
